package pl.edu.mimuw.irs.core.util.graph.exception;

public class GraphException extends RuntimeException {

	private static final long serialVersionUID = -5407016773384235735L;

	// *** Attributes
	private Cause cause;
	
	// *** Constructors

	public GraphException(Cause cause) {
		this.cause = cause;
	}
	
	// *** Methods
	
	@Override
	public String toString() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append("InternalException. " + cause.toString());
		
		return stringBuffer.toString();
	}
	
	// *** Enums
	

	public enum Cause {
		TOO_MANY_VERTEX_OCCURENCES,
		NO_VERTEX_OCCURENCES
	}
}
